You are here: Symbol Reference > Dew Namespace > Dew.Math Namespace > Classes > Vector Structure > Vector Methods > SetIt Method > Vector.SetIt Method (bool, [In] double[])
Dew Math for .NET
ContentsIndexHome
PreviousUpNext
Vector.SetIt Method (bool, [In] double[])

Sets vector values.

Syntax
C#
Visual Basic
public TVec SetIt(bool AComplex, [In] double[] A);

SetIt makes the use of open array construction, to set the values of the calling vector. It gives you the possibility to pass large arrays of elements without having to declare constant arrays. 

Sets the Length property of the calling vector to (High(A)+1) and the Complex property to AComplex. The elements of A array are copied to the calling vector. If AComplex is True then real parts of complex numbers are on even (0,2,4..)and imaginary parts on odd indexes.(1,3,5,..)

var a: Vector; begin a.SetIt(False,[1,2,3,4]); // a = [1,2,3,4] end;
Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!